package user;

import java.util.Collection;
import java.util.Comparator;
import java.util.SortedSet;

public class UserComparator implements Comparator<User> {

    @Override
    public int compare(User User1, User User2) {
        //return User1.getAge() - User2.getAge();
        return User1.getName().compareTo(User2.getName());
    }
}
